package edu.sctu.zhoudie.mouth201505.day20150517.TextThree;

/**
 * Created by user08 on 2015/5/17.
 */
public class Student implements Comparable<Student>{
    /*
    创建另一个类老师所教学生Student，该类有学号，姓名，成绩，年龄，性别，住址。
     */
    private int studentID;
//    private StringOne name;
    private String score;
    private int age;
    private String sex;
    private String address;
    public String name;


    public Student(String name, String score){
        this.studentID = studentID;
        this.name = name;
        this.score = score;
        this.age = age;
        this.sex = sex;
        this.address = address;
    }

    public int getStudentID() {
        return studentID;
    }

    public String getName() {
        return name;
    }

    public String getScore() {
        return score;
    }

    public int getAge() {
        return age;
    }

    public String getSex() {
        return sex;
    }

    public String getAddress() {
        return address;
    }

    @Override
    public int compareTo(Student o) {
        return this.score.compareTo(o.score);
    }
}
